home *** CD-ROM | disk | FTP | other *** search
/ .net (French) 1996 November / .net Magazine (FR) - Issue 01 - Nov 1996.iso / mac / Edition Web / dbf-to-html / READ ME < prev    next >
Text File  |  1996-03-29  |  3KB  |  62 lines

  1. dbf-to-html:   HTML publishing from a database.  
  2.  
  3. This application merges a database with an html template file to create an html file for every record in a database. It also creates an index html file with links to each html file created. No programming required.
  4.  
  5. I wrote this application as a result of having to write a lot of messy, hard-wired programs to generate html files from dbf records. Instead of embedding html in  database specific programs, I decided to write an app that would merge a database file with an html file, just like a mail merge.
  6.  
  7. This applications requires FoxPro/Mac, but will work on any dbf file. If you are using FileMaker Pro, just export to dbf format.
  8.  
  9. Directions:
  10.  
  11. Create an HTML template file and insert field names from your database delimitted by "%%" .  A sample html template file and database are included.
  12.  
  13. Example:
  14. *---------------------------------------------
  15. <HTML><BODY>
  16.  
  17. <CENTER><H2>%%SCHOOL%%</H2></CENTER>
  18.  
  19. Located in beatiful %%CITY%%, %%STATE%%, the %%SCHOOL%% is a very good school
  20. <BR>
  21.  
  22. [<A HREF="/">Home</A> |
  23. <A HREF="index.html">School List</A>]
  24.  
  25. </BODY></HTML>
  26. *---------------------------------------------
  27.  
  28. Start htmlMaker:
  29.  
  30. 1) From FoxPro "Run" menu pad,  select "Application..." and run "dbf-to-html".  
  31.  
  32. 2) You will be prompted to select an html template file.  Select "sample.html", or any other html template text file.
  33.  
  34. 3) You will be prompted to select a database.  Select "Sample.dbf", or any other dbf file.
  35.  
  36. 3) A screen will appear with two list boxes, each containing the field names from the selected database file. 
  37.  
  38. From the list on the left, select the field that will be used for the html file names.  It is best to use a unique id field.  From the list on the right, select the field to be used for the displayed hypertext links in the index file that will be created: 
  39.    
  40. <A HREF="0003.html">The Maret School</A><br>
  41.  
  42. Get it?
  43.  
  44. Press OK and that's it. Your database will be merged with your html template file, creating an html file for every record in the database file _and_ an index file.
  45.  
  46.  
  47. NOTE:
  48.  
  49. Make sure your field names in the html template file match exactly field names in the dbf or you'll get an error.
  50.  
  51. This application uses foxtools.mlb functions to change the change the type and creator codes of the generated html files from FoxPro's to SimpleText's. This allows you to view the html files locally through a browser (webserver served files will work without modification).  FoxPro puts foxtools.mlb in the extensions folder as part of a normal installation. If you don't have foxtools.mlb installed,  you can use FileTyper to change type and creator codes. 
  52.  
  53. LICENSE INFO:
  54. dbf-to-html is a shareware application.
  55. If you use dbf-to-html,  please send $10 to my address below. 
  56.  
  57. Hope you like it.
  58.  
  59. Andrew Warner                                 awarner@cais.com       http://www.cais.net/wrngrp/
  60. 2243  47th st, NW
  61. Washington, DC 20007
  62.